<%-- 
    Document   : view
    Created on : Mar 8, 2010, 10:49:03 AM
    Author     : Jagadeesh
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.*" %>
<%@page import="model.UserBean" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="css/bootstrap.css" rel="stylesheet"> 

        <title>Hasil Pencarian</title>
    </head>

    <body>
        <div id="indexLeftColumn"> 
       <pre>
<img src="gambar/logoo.PNG" id="logo" alt="logo">
<center><a class="btn btn-default" href="<%=request.getContextPath()%>/index.jsp">Home</a></center>
<center><a class="btn btn-default" href="<%=request.getContextPath()%>/Search.jsp">Search</a></center>
<center><a class="btn btn-primary" href="<%=request.getContextPath()%>/login.jsp">Log Out</a></center>
<img src="gambar/head2.PNG" id="logo" alt="logo">
    </pre> 
  </div>
           <div id="indexRightColumn">
  

        <center><h1>Hasil Pencarian</h1></center>

        <table class="table table-striped">
            <tr>
              <th>ID Senjata</th>
               <th>Nama Senjata</th>               
               <th>Jenis</th>
               <th>Tahun Dibuat</th>
               <th>Tahun Dibeli</th>
               <th>Status</th>

            </tr>
            <%
               List list = (List)request.getAttribute("list");
               if(list!=null)
                   {
                     for(int i=0 ; i< list.size();i++)
                         {
                           UserBean ubean =(UserBean) list.get(i);

            %>
            <tr>
              <td><%=ubean.getIdSenjata()%></td>      
                    <td><%=ubean.getNamaSenjata()%></td>
                    <td><%=ubean.getJenis()%></td>    
                    <td><%=ubean.getThnDibuat()%></td>
                    <td><%=ubean.getThnDibeli()%></td>
                    <td><%=ubean.getStatus()%></td>

            </tr>
            <%
                         }
                   }
            %>
        </table> </div>
    </body>
</html>
